.class public Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;
.super Lcom/waiqin365/lightapp/product/ProductBaseActivityNew;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field public a:Lcom/waiqin365/lightapp/order/ba;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private e:Lcom/waiqin365/lightapp/product/a/co;

.field private f:Ljava/util/List;

.field private g:I

.field private h:Lcom/waiqin365/lightapp/view/NoNetView;

.field private i:Lcom/waiqin365/lightapp/product/d/g;

.field private j:Lcom/waiqin365/lightapp/product/d/g;

.field private k:Landroid/view/View;

.field private l:Landroid/widget/Button;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/product/ProductBaseActivityNew;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    return v0
.end method

.method private a(Lcom/waiqin365/base/db/jxccache/g;)V
    .locals 1

    if-nez p1, :cond_0

    const v0, 0x7f08065e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->showToast(Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a(Ljava/util/List;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->b(I)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;Lcom/waiqin365/base/db/jxccache/g;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a(Lcom/waiqin365/base/db/jxccache/g;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    const-string/jumbo v0, "1"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    invoke-interface {v0, p3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c:Landroid/widget/TextView;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result v0

    const v1, 0x7fffffff

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->g()V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a()V

    :goto_2
    invoke-direct {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g()V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto :goto_2

    :cond_4
    iget v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    add-int/lit8 v0, v0, -0x1

    iput v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    const-string/jumbo v0, ""

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    const v0, 0x7f08013b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->getString(I)Ljava/lang/String;

    move-result-object p2

    :cond_5
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const v1, 0x7f0802c1

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const v1, 0x7f08068b

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ":"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->showToast(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a()V

    goto/16 :goto_2

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_2
.end method

.method private a(Ljava/util/List;)V
    .locals 4

    if-nez p1, :cond_0

    const v0, 0x7f08065e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->showToast(Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    const-string/jumbo v1, "close_activity"

    const/4 v2, 0x0

    const-class v3, Lcom/waiqin365/lightapp/product/ProductSearchActivity;

    invoke-virtual {v0, v1, v2, v3}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    const-string/jumbo v1, "has_data"

    const-class v2, Lcom/waiqin365/lightapp/product/ProductSelectActivity;

    invoke-virtual {v0, v1, p1, v2}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    invoke-super {p0}, Lcom/waiqin365/lightapp/product/ProductBaseActivityNew;->finish()V

    goto :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    return v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    return p1
.end method

.method private b()Lcom/waiqin365/lightapp/product/a/co;
    .locals 4

    invoke-static {}, Lcom/waiqin365/lightapp/product/o;->a()Lcom/waiqin365/lightapp/product/o;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/d/g;->d:Lcom/waiqin365/lightapp/product/s;

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->mContext:Landroid/content/Context;

    iget-object v3, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    invoke-virtual {v0, v1, v2, v3}, Lcom/waiqin365/lightapp/product/o;->a(Lcom/waiqin365/lightapp/product/s;Landroid/content/Context;Ljava/util/List;)Lcom/waiqin365/lightapp/product/a/co;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/lightapp/product/o;->a()Lcom/waiqin365/lightapp/product/o;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    iget-object v2, v2, Lcom/waiqin365/lightapp/product/d/g;->d:Lcom/waiqin365/lightapp/product/s;

    iget-object v3, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v2, v3}, Lcom/waiqin365/lightapp/product/o;->a(Lcom/waiqin365/lightapp/product/s;Landroid/content/Context;)Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/a/co;->a(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/d/g;->i:Ljava/util/List;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/a/co;->a(Ljava/util/List;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/product/d/g;->k:Z

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/a/co;->d(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/d/g;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/a/co;->a(Ljava/lang/String;)V

    new-instance v1, Lcom/waiqin365/lightapp/order/aw;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/order/aw;-><init>(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/a/co;->a(Lcom/waiqin365/lightapp/product/c/a;)V

    return-object v0
.end method

.method private b(I)V
    .locals 3

    const v2, 0x7f0805d3

    if-lez p1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->l:Landroid/widget/Button;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->l:Landroid/widget/Button;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->l:Landroid/widget/Button;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->l:Landroid/widget/Button;

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    return-object v0
.end method

.method private c()Ljava/lang/String;
    .locals 1

    const v0, 0x7f08068d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    add-int/lit8 v1, v0, -0x1

    iput v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    return v0
.end method

.method private d()V
    .locals 3

    const/16 v2, 0x8

    const v0, 0x7f0c0942

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->b:Landroid/widget/ImageView;

    const v0, 0x7f0c0944

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c:Landroid/widget/TextView;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0948

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c09e9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    const v0, 0x7f0c050d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->k:Landroid/view/View;

    const v0, 0x7f0c0504

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->l:Landroid/widget/Button;

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/product/d/g;->f:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->k:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)Lcom/waiqin365/lightapp/view/NoNetView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    return-object v0
.end method

.method private e()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/order/ax;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/order/ax;-><init>(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonRefreshListener(Lcom/waiqin365/lightapp/dailyreport/view/z;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/order/ay;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/order/ay;-><init>(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonHistoryListener(Lcom/waiqin365/lightapp/dailyreport/view/aa;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/NoNetView;->b:Landroid/widget/TextView;

    new-instance v1, Lcom/waiqin365/lightapp/order/az;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/order/az;-><init>(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private f()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->b()Lcom/waiqin365/lightapp/product/a/co;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e:Lcom/waiqin365/lightapp/product/a/co;

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->d:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e:Lcom/waiqin365/lightapp/product/a/co;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    return-void
.end method

.method private g()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e:Lcom/waiqin365/lightapp/product/a/co;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/a/co;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a()V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->h:Lcom/waiqin365/lightapp/view/NoNetView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto :goto_0
.end method


# virtual methods
.method public a(I)V
    .locals 3

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->showProgressDialog(Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/d/g;->c:Ljava/lang/String;

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/waiqin365/lightapp/order/b/a/e;

    invoke-direct {v2, v1, v0}, Lcom/waiqin365/lightapp/order/b/a/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/order/b/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a:Lcom/waiqin365/lightapp/order/ba;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/order/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/order/b/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/order/b/b;->start()V

    :cond_1
    return-void
.end method

.method public finish()V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->j:Lcom/waiqin365/lightapp/product/d/g;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->j:Lcom/waiqin365/lightapp/product/d/g;

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e:Lcom/waiqin365/lightapp/product/a/co;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/a/co;->m()Ljava/util/List;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/product/d/g;->i:Ljava/util/List;

    const-string/jumbo v1, "param"

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->j:Lcom/waiqin365/lightapp/product/d/g;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    :goto_0
    const/4 v1, -0x1

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->setResult(ILandroid/content/Intent;)V

    invoke-super {p0}, Lcom/waiqin365/lightapp/product/ProductBaseActivityNew;->finish()V

    return-void

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e:Lcom/waiqin365/lightapp/product/a/co;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/a/co;->m()Ljava/util/List;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/product/d/g;->i:Ljava/util/List;

    const-string/jumbo v1, "param"

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    goto :goto_0
.end method

.method public hasData(Lcom/fiberhome/gaea/client/a/c;)V
    .locals 2

    iget-object v0, p1, Lcom/fiberhome/gaea/client/a/c;->b:Ljava/lang/Object;

    instance-of v0, v0, Ljava/util/HashMap;

    if-eqz v0, :cond_0

    iget-object v0, p1, Lcom/fiberhome/gaea/client/a/c;->b:Ljava/lang/Object;

    check-cast v0, Ljava/util/HashMap;

    if-eqz v0, :cond_0

    const-string/jumbo v1, "key"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e:Lcom/waiqin365/lightapp/product/a/co;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/product/a/co;->a(Ljava/util/List;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e:Lcom/waiqin365/lightapp/product/a/co;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/a/co;->notifyDataSetChanged()V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->finish()V

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e:Lcom/waiqin365/lightapp/product/a/co;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/a/co;->m()Ljava/util/List;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a(Ljava/util/List;)V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c0504 -> :sswitch_1
        0x7f0c0942 -> :sswitch_0
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/product/ProductBaseActivityNew;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f0301dc

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->setContentView(I)V

    new-instance v0, Lcom/waiqin365/lightapp/order/ba;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/order/ba;-><init>(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a:Lcom/waiqin365/lightapp/order/ba;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "param"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/g;

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/product/d/g;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/product/d/g;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    :goto_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->d()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->f()V

    iget v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->g:I

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a(I)V

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/fiberhome/gaea/client/a/b;->addObserver(Ljava/util/Observer;)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->i:Lcom/waiqin365/lightapp/product/d/g;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/d/g;->a()Lcom/waiqin365/lightapp/product/d/g;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->j:Lcom/waiqin365/lightapp/product/d/g;

    goto :goto_0
.end method
